package com.yellowframework.cloud.api.system;

import com.yellowframework.cloud.common.model.response.ObjectResponseResult;
import com.yellowframework.cloud.common.model.response.QueryResponseResult;
import com.yellowframework.cloud.common.model.response.ResponseResult;
import com.yellowframework.cloud.domain.system.SysDataModel;
import com.yellowframework.cloud.domain.system.ext.SysDataModelExt;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags="数据模型")
public interface SysDataModelControllerApi {

    @ApiOperation("分页查询列表数据")
    QueryResponseResult<SysDataModel> pageList(Integer page, Integer size);

    @ApiOperation("信息")
    ObjectResponseResult<SysDataModelExt> get(Integer id);

    @ApiOperation("保存")
    ResponseResult save(SysDataModelExt request);

    @ApiOperation("修改")
    ResponseResult update(Integer id, SysDataModelExt request);

    @ApiOperation("删除")
    ResponseResult delete(Long[] ids);
}
